﻿<!DOCTYPE html>
<html>
	<meta charset="UTF-8"/>
	<head>
		<script>
			var namelist = ["刘晋豪", "高晓兵", "欧阳秋雪", "曲文芳", "叶宏波", "姜斌", "范晔婷", "郭慧琴", "赵本东", "张梦兰", "乔振华", "刘亮", "张翼辉", "王宗其", "张冬喜", "吴晓倩", "杨宇星", "张兆欢", "张晋哲", "师瑞鑫", "刘浩", "王晓腾"];
			function randName(){
				var div = document.getElementById("box");
				div.innerHTML = namelist[ parseInt(Math.random()*namelist.length) ];
			}
		</script>
	</head>
	<body>
		<h1>随机点名</h1>
		<div id="box" style="width:300px;height:200px; background:#f40;"></div>
		<p id="info" class="no1">
			<button onclick="randName()">随机抽取</button>
		</p>
	</body>	
</html>











